/***************************************************************************
创建者：华磊
 开始时间：               : 2020.1１.09
 copyright            : (C) 深圳市华友高科有限公司
 修改说明：（每次有修改就添加一条，带有 修改人，修改时间，修改描述）

 ***************************************************************************
 *   右侧视窗测试用代理类
*                                                                         *
 ***************************************************************************/
#ifndef RIGHTVIEWDELEGATE_H
#define RIGHTVIEWDELEGATE_H

#include "rightviewdelegate_global.h"
#include "../rightview/rightview.h"
#include "../CommunicateDelegate/hmicommunicate.h"
#include <QObject>

class RIGHTVIEWDELEGATESHARED_EXPORT RightViewDelegate : public QObject
{

    Q_OBJECT

public:
    RightViewDelegate(RightView *rightViewIn,GlobalData *globalDateIn,QObject* parent=0);
    ~RightViewDelegate();


    void setAllAddress();

    int tmpType;

    int saveType;
    int saveCount;

signals:
    void changeViewIDsignal(int id);
    void changeViewJog();

public slots:

    void button1Slot();
    void button2Slot();
    void button3Slot();
    void button4Slot();
    void button5Slot();
    void button6Slot();
    void button7Slot();

    /**
     * @brief changeJogAxisName_slot         信号来自topview,修改轴名称,轴个数
     * @param type 显示类型　J E XYZ
     */
    void changeJogAxisName_slot(bool isJointShow, int totalAxisCountIn, int pageIdIn, int onePageMaxAxisCount);

    /**
     * @brief changeCurrentAxis     信号来自jogview,寸动 当前选中轴
     * @param axisNumber
     */
    void changeCurrentAxis(int axisNumber);

private:
    void initConnect();
private:
    RightView *rightView;
    GlobalData *globalDate;


};

#endif // RIGHTVIEWDELEGATE_H
